package com.example.number;

import cn.hutool.core.util.StrUtil;
import org.junit.Test;

/**
 * 数字test
 *
 * @author csp 2022-11-08
 */
public class NumberTest {

    @Test
    public void test1(){
        double number1 = 1.2;
        double number2 = 20.2;
        double number3 = 300.3;
        double result = number1 + number2 + number3;
        System.out.println("使用double运算结果: "+result);
    }

    @Test
    public void test2() {
        System.out.println(String.format("%03d%03d%03d", 3, 3, 3));
    }

    @Test
    public void test3() {
        System.out.println(StrUtil.compare("1", null, true));
    }

}
